<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:th="http://www.thymeleaf.org">
<head>
	<title>首页</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div id="content">
	<section class="content-header">
		<h1>
			<i class="fa fa-file-image-o"></i> <strong>投标结果报告</strong>
		</h1>
		<ol class="breadcrumb">
			<li><a href="#"><i class="fa fa-home "></i>Home</a></li>
			<li>投标管理</li>
			<li class="active">投标反馈</li>
		</ol>
	</section>
	<!-- Main content -->
	<section class="content">
		<div class="box box-info" id="bidBackForm">
			<div class="box-header with-border">
				<i class="fa fa-th-list"></i>
				<h4 class="box-title">基本信息</h4>
			</div>
			 <input type="hidden" name="bidId" id="bidId" th:value="${bid.id}"/> 
			 <input type="hidden" name="createTime" id="createTime" th:value="${bid.createTime}"/>
			<table class="table table-bordered">
				<tbody>
				<tr class="odd gradeX">
					<td width="8%" class="center">项目名称</td>
					<td width="17%"><input class="form-control" type="text" id="name" name="name"  
					th:value="${bid.name}" readonly="readonly"/></td>
					<td width="8%" class="center">招标单位</td>
					<td width="17%"><input class="form-control" type="text" id="bidUnit" name="bidUnit" 
					 readonly="readonly" th:value="${bid.bidUnit}"/></td>
					<td width="8%" class="center">投标日期</td>
					<td width="17%"><input class="form-control" type="date" id="bidDate" name="bidDate" 
						th:value="${#dates.format(bid.bidDate,'YYYY-MM-dd')}"/>
				    </td>
				</tr>
				<tr class="even gradec">
					<td width="8%" class="center">反馈类型</td>
					<td width="17%">
					    <select class="form-control" id="backType" name="backType">
								<option th:each="backType:${backTypes}"
											th:text="${backType.title}"
											th:selected="${backType.title.equals(bid.backType)}"></option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="center">设备型号及数量</td>
					<td colspan="7">
						<textarea class="form-control" style="width:100%" 
						id="deviceAcount" name="deviceAcount"  rows="3"
						th:text="${bid.deviceAcount}"></textarea>
					</td>
				</tr>
				</tbody>
			</table>
			
			<div class="box-header with-border">
				<i class="fa fa-th-list"></i>
				<h4 class="box-title">投标价格组成</h4>
			</div>
			<table class="table table-bordered">
				<tr class="odd gradeX">
					<td width="3%" class="center">自制设备价格</td>
					<td width="22%"><input class="form-control" type="text" id="selfDevicePrice" name="selfDevicePrice" 
					   th:value="${bid.SelfDevicePrice}" datatype="n"/></td>	
				</tr>
				<tr class="even gradeC">
					<td width="3%" class="center">外购设备价格</td>
					<td width="22%"><input class="form-control" type="text" id="buyDevicePrice" name="buyDevicePrice"  
					  th:value="${bid.buyDevicePrice}"  datatype="n"/></td>		
				</tr>
				<tr class="odd gradeX">
					<td class="center">付款方式</td>
					<td colspan="7">
						<textarea class="form-control" style="width:100%" id="payType" name="payType"  rows="3"
						th:text="${bid.payType}"></textarea>
					</td>
				</tr>
			</table>
			<div class="box-header with-border">
				<i class="fa fa-th-list"></i>
				<h4 class="box-title">开标情况记录表</h4>
			</div>
			<button type="button" class="btn btn-info pull-right addBtn">新建</button>
			<button type="button" class="btn btn-info pull-right editBtn">编辑</button>
			<button type="button" class="btn btn-info pull-right delBtn" >删除</button>
			<table  id="bidRecordTable" width="100%"  class="mytable dataTable table-bordered text-center table-striped table-hover display">
				<thead>
				<tr>
					<th width="10%" >序号</th>
					<th width="10%" ><input type="checkbox" id="checkAll"/></th>
					<th width="15%" >投标单位</th>
					<th width="15%" >价格（万元）</th>
					<th width="10%" >交货日期</th>
					<th width="25%" >其他</th>
					<th width="15%" >中标单位</th>
				</tr>
				</thead>
				<tbody>
				
				</tbody>
			</table>
			
			<div class="box-header with-border">
				<i class="fa fa-th-list"></i>
				<h4 class="box-title">项目运作经验与建议</h4>
			</div>
			<table class="table table-bordered">
				<tr class="odd gradeX">
					<td >
						<textarea class="form-control" style="width:100%" id="summary" name="summary"
						 rows="3" th:text="${bid.summary}"></textarea>
					</td>
				</tr>
			</table>
			<div>
				<a type="button" class="btn btn-default pull-right" href="javascript:history.go(-1)">返回</a>
				<button type="button" class="btn btn-info pull-right saveBackBtn">保存</button>
			</div>
		</div>

	</section>
	<!--开标情况信息添加弹窗-->
			<div class="modal" id="bidRecordModal">
				<div class="modal-dialog" role="dialog">
					<form id="bidRecordForm">
						<div class="modal-content">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
								<h4 class="modal-title"><strong>开标情况记录表</strong></h4>
							</div>
							<div class="modal-body">
								<input type="hidden" name="id" id="id" />
								<div class="form-horizontal">
									<div class="form-group">
										<label class="col-sm-2 control-label">投标单位</label>
										<div class="col-sm-4">
											<div class="col-md-11">
												<input class="form-control"  type="text" name="bUnit"  id="bUnit"  datatype="*,*1-100"  nullmsg="请输入投标单位" />
											</div>
											<div class="col-md-1">
												<span style="color:#F00;fontsize:30px">*</span>
											</div>
										</div>
										<label class="col-sm-2 control-label">价格(万元)</label>
										<div class="col-sm-4">
											<div class="col-md-11">
												<input class="form-control"  type="text" name="price"  id="price" datatype="n"/>
											</div>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">交货期</label>
										<div class="col-sm-4">
											<div class="col-md-11">
												<input class="form-control" type="date" name="deliveryDate" id="deliveryDate" datatype="*,date"/>
											</div>
											<div class="col-md-1">
												<span style="color:#F00;fontsize:30px">*</span>
											</div>
										</div>
										<label class="col-sm-2 control-label">其他</label>
										<div class="col-sm-4">
											<div class="col-md-11">
												<input class="form-control" type="text" name="other" id="other" />
											</div>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">中标单位</label>
										<div class="col-sm-4">
											<div class="col-md-11">
											    <select class="form-control" id="winner" name="winner">
												     <option>是</option>
												     <option>否</option>
										        </select>
											</div>
										</div>
									</div>
								</div>
							</div>
							<div class="modal-footer">
								<button type="button" class="btn btn-default" data-dismiss="modal">返回</button>
								<button type="button" class="btn btn-info saveBtn" >保存</button>
							</div>
						</div>
					</form>
				</div>
			</div>
			
	<script th:src="@{/bid/bidback.js}"></script>
</div>
</body>
</html>